package com.bean;

import com.google.common.hash.BloomFilter;

import java.sql.Connection;
import java.sql.Driver;
import java.sql.DriverManager;

/**
 * @Author: tgy
 * @Date: 2020-07-31 15:56
 */
public class CustomFactoryBean {

    public Connection getConnection() throws Exception{


        Class.forName("com.mysql.cj.jdbc.Driver");
        Connection connection = DriverManager.getConnection("jdbc:mysql://47.99.51.246:3306/crud?useSSL=false", "option", "oqu_aiy8vaey<oGho1baw0ye");

        return  connection;
    }
}
